/*
 * Project: Java User Group, Chennai
 * Copyright(c) 2010 jugc.in
 * All rights reserved.
 *
 * $Revision $, last modified $Date $ by $Author $
 */
package com.quintilis31.home.persistence.type.impl.sql.jpa;

import java.io.Serializable;

/**
 * The base Generic DAO interface
 *
 * TODO... Write Javadoc...
 * 
 * @author    Jothi Shankar Kumar. S
 * @since     1.6
 *
 * @param <T> the entity type
 * @param <ID> the primary key type
 *
 */
public interface IGenericBaseDAO < T, ID  extends Serializable > {

    /**
     *
     * @param entity
     */
    void save(T entity);

    /**
     *
     * @param entity
     */
    void delete(T entity);

    /**
     *
     * @param entity
     */
    //void update(T entity);

    /**
     *
     * @param id
     * @return
     */
    T findById(Long id);

}